<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
<title>LeproRSS: вход</title> 
<style type="text/css">	
	.logo {
		display:block;
		position:absolute;
		top:30px;
		height:50px;
		text-decoration:none;
		font-size:24px;
	}
	.loginform{
		height:421px;
		width:405px;
		position:absolute;
		top:50%;
		margin-top:-310px;
		left:50%;
		margin-left:-203px;
	}
</style>
</head> 
<body> 
<div style="align:center;"> 
	<div class="loginform"> 
		<div class="ie_bg"></div> 
		<div class="form"> 
<?php
require_once 'lepro-rss.php';
$rss = new LeproRSS();
 
if ( isset($_REQUEST['user']) ){
	$user = $_REQUEST['user'];
	$pass = $_REQUEST['pass'];
	$capcha = $_REQUEST['captcha'];
	$logincode = $_REQUEST['logincode'];
	
	$res = $rss->doLogin($user,$pass,$capcha,$logincode);
	if($res != false){
		echo '<a class="logo" href="feed.php?feed='.$user.'-'.$logincode.'">> Ваш личный LeproRSS фид <</a>';
	}else{
		echo '<a class="logo" href="index.php">Что-то не так, попробуйте еще раз.</a>';
	}
}
?>
		</div> 
	</div> 
</div> 
</body> 
</html> 
